#ifndef MSERVER_H
#define MSERVER_H

#include <QTcpServer>
#include "serverthread.h"

class mServer : public QTcpServer
{
    Q_OBJECT
public:
    int totalClient;  //客户端数
    explicit mServer(QObject *parent = 0);
public slots:
    void outConnect();

protected:
    void incomingConnection(int socketDescriptor);  //虚函数，有tcp请求时会触发

signals:

private:
    ServerThread* thread;

};

#endif // MSERVER_H
